QuickOPC User's Guide and Reference
FromDAVtq Method (DAVtq<TValue>)



View with Navigation Tools
OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Generic Namespace > DAVtq<TValue> Class : FromDAVtq Method
A non-generic Value/Timestamp/Quality object to be converted to typed generic.
Creates a typed generic DAVtq<TValue> from non-generic OpcLabs.EasyOpc.DataAccess.DAVtq object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function FromDAVtq( _
   ByVal vtq As DAVtq _
) As DAVtq(Of TValue)
 
'Usage
 
Dim vtq As DAVtq
Dim value As DAVtq(Of TValue)
 
value = DAVtq(Of TValue).FromDAVtq(vtq)

Parameters

vtq
A non-generic Value/Timestamp/Quality object to be converted to typed generic.

Return Value

A typed DAVtq<TValue> object made from vtq.
Remarks
When vtq is null, the return value is also null. An exception is thrown when the vtq does not contain a type assignable to DAVtq<TValue>.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also